home *** CD-ROM | disk | FTP | other *** search
/ The Genius of Edison / The Genius of Edison (Version 1.0)(Softkey Multimedia)(GOE744AE-CD)(1996).ISO / pc / data / shared.cst / 00050_Script_Go Handlers < prev    next >
Text File  |  1996-09-03  |  7KB  |  291 lines

  1. -- ---------------------------------------------------------------
  2. -- Handler goWheel takes the user to the wheel.
  3.  
  4. on goWheel whichFrame 
  5.   stopSound
  6.   
  7.   if voidP(whichFrame) then
  8.     go frame "startwheel" of movie "DSK.dir"
  9.   else
  10.     go frame whichFrame of movie "DSK.dir"
  11.   end if
  12.   
  13.   initializeWheel
  14.   setNonInventionSectionInfo("Wheel")
  15. end
  16.  
  17. -- ---------------------------------------------------------------
  18. -- Handler goTimeline takes the user to the TimeLine.
  19.  
  20. on goTimeline
  21.   stopSound
  22.   go movie "TL.dir"
  23.   
  24.   setNonInventionSectionInfo("Timeline")
  25. end
  26.  
  27. -- ---------------------------------------------------------------
  28. -- Handler goDataBase takes the user to the data section.
  29.  
  30. on goDataBase whichFrame
  31.   stopSound
  32.   
  33.   if voidP(whichFrame) then
  34.     go movie "DB.dir"
  35.   else
  36.     go frame whichFrame of movie "DB.dir"
  37.   end if
  38.   
  39.   setNonInventionSectionInfo("Database")
  40. end
  41.  
  42. -- ---------------------------------------------------------------
  43. -- Handler goIndex takes the user to the Index.
  44.  
  45. on goIndex
  46.   stopSound
  47.   go movie "Index.dir"
  48.   
  49.   setNonInventionSectionInfo("Index")
  50. end
  51.  
  52. -- ---------------------------------------------------------------
  53. -- Handler goHelp takes the user to the Help section.
  54.  
  55. on goHelp
  56.   stopSound
  57.   go movie "help.dir"
  58.   
  59.   setNonInventionSectionInfo("Help")
  60. end
  61.  
  62. -- ---------------------------------------------------------------
  63. -- Handler goTour takes the user to the tour.
  64.  
  65. on goTour
  66.   stopSound
  67.   go frame "prog" of movie "InfoTou.dir"
  68.   
  69.   setNonInventionSectionInfo("Tour")
  70. end
  71.  
  72. -- ---------------------------------------------------------------
  73. -- Handler goIntro takes the user to the introduction.
  74.  
  75. on goIntro
  76.   stopSound
  77.   go movie "Intro.dir"
  78.   
  79.   setNonInventionSectionInfo("Intro")
  80. end
  81.  
  82. -- ---------------------------------------------------------------
  83. -- Handler goQuiz takes the user to the quiz.
  84.  
  85. on goQuiz
  86.   stopSound
  87.   go movie "QuizGam.dir"
  88.   
  89.   setNonInventionSectionInfo("Quiz")
  90. end 
  91.  
  92. -- ---------------------------------------------------------------
  93. -- Handler doQuit quits the program.
  94.  
  95. on doQuit
  96.   stopSound
  97.   go movie "Credits.dir"
  98.   
  99.   --  setInInventionFlag(FALSE)
  100.   --  setDEPFlag(FALSE)
  101. end
  102.  
  103. -- ---------------------------------------------------------------
  104. -- Handler goTomsTechnology takes the user to the tom's technology
  105. -- section of the current invention.
  106.  
  107. on goTomsTechnology
  108.   global inventionMovie
  109.   
  110.   watchCursor
  111.   
  112.   if (the movieName = inventionMovie) then
  113.     goFrame "TT"
  114.   else
  115.     stopSound
  116.     go frame "TT" of movie inventionMovie
  117.   end if
  118.   
  119.   setInventionSubSectionInfo("Toms Technology", 0)
  120.   
  121.   normalCursor
  122. end
  123.  
  124. -- ---------------------------------------------------------------
  125. -- Handler goDailyEdisonian takes the user to the dailyEdisonian
  126. -- section of the current invention.
  127.  
  128. on goDailyEdisonian
  129.   global inventionMovie
  130.   
  131.   watchCursor
  132.   
  133.   if (the movieName = inventionMovie) then
  134.     goFrame "DEP"
  135.   else
  136.     stopSound
  137.     go frame "DEP" of movie inventionMovie
  138.   end if
  139.   
  140.   setInventionSubSectionInfo("Daily Edisonian", 1)
  141.   
  142.   normalCursor
  143. end
  144.  
  145. -- ---------------------------------------------------------------
  146. -- Handler goTimeMarchesOn takes the user to the time marches on
  147. -- section of the current invention.
  148.  
  149. on goTimeMarchesOn
  150.   global inventionMovie
  151.   
  152.   watchCursor
  153.   
  154.   if (the movieName = inventionMovie) then
  155.     goFrame "TMO"
  156.   else
  157.     stopSound
  158.     go frame "TMO" of movie inventionMovie
  159.   end if
  160.   
  161.   setInventionSubSectionInfo("Time Marches On", 0)
  162.   
  163.   normalCursor
  164. end
  165.  
  166. -- ---------------------------------------------------------------
  167. -- Handler goKinetoscope takes the user to the kinetoscope
  168. -- section of the kinetoscope movie.
  169.  
  170. on goKinetoscope
  171.   global inventionMovie
  172.   
  173.   watchCursor
  174.   
  175.   if (the movieName = inventionMovie) then
  176.     goFrame "parlor"
  177.   else
  178.     stopSound
  179.     go frame "parlor" of movie inventionMovie
  180.   end if
  181.   
  182.   setInventionSubSectionInfo("Kinetoscope", 0)
  183.   
  184.   normalCursor
  185. end
  186.  
  187. -- ---------------------------------------------------------------
  188. -- Handler goKinetograph takes the user to the kinetograph
  189. -- section of the kinetograph movie.
  190.  
  191. on goKinetograph
  192.   global inventionMovie
  193.   
  194.   watchCursor
  195.   
  196.   if (the movieName = inventionMovie) then
  197.     goFrame "reelstory"
  198.   else
  199.     stopSound
  200.     go frame "reelstory" of movie inventionMovie
  201.   end if
  202.   
  203.   setInventionSubSectionInfo("Kinetograph", 0)
  204.   
  205.   normalCursor
  206. end
  207.  
  208. -- ---------------------------------------------------------------
  209. -- Handler goMorse takes the user to the morse code game
  210. -- section of the quadruplex movie.
  211.  
  212. on goMorse
  213.   global inventionMovie
  214.   
  215.   watchCursor
  216.   
  217.   if (the movieName = "QDMorse.dir") then
  218.     goFrame "start"
  219.   else
  220.     stopSound
  221.     go frame "start" of movie "QDMorse.dir"
  222.   end if
  223.   
  224.   setInventionSubSectionInfo("Morse", 0)
  225.   
  226.   normalCursor
  227. end
  228. -- ---------------------------------------------------------------
  229. -- Handler setInInventions sets the global variable inInventionFlag to
  230. -- the given value. This variable is used to determine if checkMenuRoll
  231. -- should check if the user rolled over the local menu.
  232.  
  233. on setInInventionFlag val
  234.   global inInventionFlag
  235.   
  236.   set inInventionFlag = val
  237. end
  238.  
  239. -- -----------------------------------------------------------------------
  240. -- Handler setDEPFlag sets the global variable depFlag to the given value.
  241. -- This variabe is used to determine if checkMenuRoll should check for
  242. -- rollover on the dep menu.
  243.  
  244. on setDEPFlag val
  245.   global depFlag
  246.   
  247.   set depFlag = val
  248. end
  249.  
  250. -- ---------------------------------------------------------------
  251. -- Handler setNonInventionSectionInfo sets values that need to be set
  252. -- when going to a section that is not part of an invention.
  253.  
  254. on setNonInventionSectionInfo whichSection
  255.   setInInventionFlag(FALSE)
  256.   setDEPFlag(FALSE)
  257.   addCurrentSectionToBackList
  258.   setCurrentSection(whichSection)
  259.   setCurrentSubSection(EMPTY)
  260.   setBackFlag(FALSE)
  261. end
  262.  
  263. -- ---------------------------------------------------------------
  264. -- Handler inDatabase 
  265.  
  266. on inDatabase
  267.   return (the movieName = "DB.dir")
  268. end
  269.  
  270. -- ---------------------------------------------------------------
  271. -- Handler inHelp
  272.  
  273. on inHelp
  274.   return (the movieName = "Help.dir")
  275. end
  276.  
  277. -- ---------------------------------------------------------------
  278. -- Handler inTimeline
  279.  
  280. on inTimeLine
  281.   return (the movieName = "TL.dir")
  282. end
  283.  
  284.  
  285. -- ---------------------------------------------------------------
  286. -- Handler inMorse
  287.  
  288. on inMorse
  289.   return (the movieName = "QDMorse.dir")
  290. end
  291.